package com.tom.abstractcode.test4;

/**
 * @author zx
 * @date 2024年12月20日 10:28
 */
public class TestDemo {
    public static void main(String[] args) {
        SendJoinGroupRequest sendJoinGroupRequest = new SendJoinGroupRequest();
        RequestFuture future = sendJoinGroupRequest.sendJoinGroupRequest("测试发送心跳检测请求");
        future.addListener(new RequestFutureListener() {
            @Override
            public void onSuccess(String s) {
                System.out.println("我是SendHeartbeatRequest传播出来的，请求为:" + s);

            }

            @Override
            public void onFail() {

            }
        });

         /* SendHeartbeatRequest sendHeartbeatRequest = new SendHeartbeatRequest();
        RequestFuture future1 = sendHeartbeatRequest.sendHeartbeat("测试发送心跳检测请求");
        future1.addListener(new RequestFutureListener() {
            @Override
            public void onSuccess(String s) {
                System.out.println("我是SendHeartbeatRequest传播出来的，请求为:" + s);
            }

            @Override
            public void onFail() {

            }
        });*/


    }
}
